package com.vim.common.model.exception;

/**
 * 业务异常
 */
public enum BusinessExceptionEnums implements ExceptionEnums{

    ERROR_PARAM_NULL(40001, "参数为空"),

    ERROR_USER_LOGIN(50001, "用户名或密码错误"),

    ERROR_PHONE_LOGIN(50002, "手机号或验证码错误");

    /** 错误编码 */
    public int code;

    /** 错误信息 */
    public String msg;

    BusinessExceptionEnums(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
